#!/usr/bin/env bash

[[ "$TRACE" ]] && set -x
pushd `dirname "$0"` > /dev/null
trap `popd > /dev/null` EXIT

NEWPATH=`../privatePath.sh`
[[ $? -ne 0 ]] && exit 1
PATH="$NEWPATH"

protoc \
	-I=./proto -I=../local/protoc/include \
	--go_out=paths=source_relative:./fieldmaskpb \
	`find proto -name "*.proto"`